// @/utils/validators.js
export const validatePath = (rule, value, callback) => {
  const isDuplicate = menuList.value.some(menu => menu.path === value && menu.id !== formData.id)
  if (isDuplicate) {
    callback(new Error('该路径已存在，请重新输入'))
  } else {
    callback()
  }
}